package main

import (
	"fmt"
	"runtime"
)

func main() {
	//获取cpu核数量
	fmt.Println("cpus:", runtime.NumCPU())
	//获取goroot目录：
	fmt.Println("goroot:", runtime.GOROOT())
	//获取操作系统
	fmt.Println("archive:", runtime.GOOS)
}
